package org.BUPT.service;

import org.BUPT.entity.QuestionBO;
import org.BUPT.entity.User;
import org.BUPT.entity.UserSimilarityDTO;
import org.BUPT.utils.RecommendUtils;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class UserService {

    public List<QuestionBO> questionRecommend(Long id){
        List<UserSimilarityDTO> userSimilarityDTOList = new ArrayList<>();
        List<Long> list = RecommendUtils.getSimilarityBetweenUsers(id, userSimilarityDTOList, 5);
        List<QuestionBO> qList = new ArrayList<>();
        return qList;
    }

    public User updatePWD(String username, String pwd){
        User user = new User();
        return user;
    }
}
